/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaProductos.java
 *
 * Created on 13-feb-2012, 10:51:07
 */
package interfacesGraficas;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax.swing.JTextField;

/**
 *
 * @author diego
 */
public class PantallaProductos extends javax.swing.JInternalFrame {

    /** Creates new form PantallaProductos */
    public PantallaProductos() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jToolBar1 = new javax.swing.JToolBar();
        btnNuevoProducto = new javax.swing.JButton();
        btnNuevoTipoProd = new javax.swing.JButton();
        btnModificarProd = new javax.swing.JButton();
        btnEliminarProd = new javax.swing.JButton();
        btnSalir = new javax.swing.JButton();
        jPanelContenedor = new javax.swing.JPanel();
        JPanelFiltro = new javax.swing.JPanel();
        txtNombreProd = new javax.swing.JTextField();
        cbxTipoProducto = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        btnBuscar = new javax.swing.JButton();
        jPanelProductos = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblProductos = new javax.swing.JTable();

        setBorder(javax.swing.BorderFactory.createEtchedBorder());
        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jToolBar1.setFloatable(false);
        jToolBar1.setRollover(true);

        btnNuevoProducto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/folder_new-30.png"))); // NOI18N
        btnNuevoProducto.setToolTipText("Nuevo Producto");
        btnNuevoProducto.setFocusable(false);
        btnNuevoProducto.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnNuevoProducto.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnNuevoProducto);

        btnNuevoTipoProd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Combo-Box-30.png"))); // NOI18N
        btnNuevoTipoProd.setToolTipText("Nuevo Tipo");
        btnNuevoTipoProd.setFocusable(false);
        btnNuevoTipoProd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnNuevoTipoProd.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnNuevoTipoProd);

        btnModificarProd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/document_pencil_30.png"))); // NOI18N
        btnModificarProd.setToolTipText("Modificar Producto");
        btnModificarProd.setFocusable(false);
        btnModificarProd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnModificarProd.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnModificarProd);

        btnEliminarProd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/user-trash-30.png"))); // NOI18N
        btnEliminarProd.setToolTipText("Eliminar Producto");
        btnEliminarProd.setFocusable(false);
        btnEliminarProd.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEliminarProd.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEliminarProd);

        btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        btnSalir.setToolTipText("Salir");
        btnSalir.setFocusable(false);
        btnSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnSalir);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        getContentPane().add(jToolBar1, gridBagConstraints);

        jPanelContenedor.setLayout(new java.awt.GridBagLayout());

        JPanelFiltro.setBorder(javax.swing.BorderFactory.createTitledBorder("Filtros"));

        txtNombreProd.setMinimumSize(new java.awt.Dimension(150, 24));
        txtNombreProd.setPreferredSize(new java.awt.Dimension(150, 24));

        cbxTipoProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbxTipoProducto.setMinimumSize(new java.awt.Dimension(170, 24));
        cbxTipoProducto.setPreferredSize(new java.awt.Dimension(170, 24));

        jLabel1.setText("Tipo");

        jLabel2.setText("Nombre");

        btnBuscar.setText("Buscar");

        javax.swing.GroupLayout JPanelFiltroLayout = new javax.swing.GroupLayout(JPanelFiltro);
        JPanelFiltro.setLayout(JPanelFiltroLayout);
        JPanelFiltroLayout.setHorizontalGroup(
            JPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JPanelFiltroLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(JPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(cbxTipoProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(38, 38, 38)
                .addGroup(JPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(JPanelFiltroLayout.createSequentialGroup()
                        .addComponent(txtNombreProd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel2))
                .addGap(372, 372, 372))
        );
        JPanelFiltroLayout.setVerticalGroup(
            JPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JPanelFiltroLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(JPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(JPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbxTipoProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNombreProd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBuscar))
                .addGap(13, 13, 13))
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        jPanelContenedor.add(JPanelFiltro, gridBagConstraints);

        jPanelProductos.setBorder(javax.swing.BorderFactory.createTitledBorder("Productos"));

        tblProductos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tblProductos);

        javax.swing.GroupLayout jPanelProductosLayout = new javax.swing.GroupLayout(jPanelProductos);
        jPanelProductos.setLayout(jPanelProductosLayout);
        jPanelProductosLayout.setHorizontalGroup(
            jPanelProductosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelProductosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 873, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanelProductosLayout.setVerticalGroup(
            jPanelProductosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelProductosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)
                .addContainerGap())
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        jPanelContenedor.add(jPanelProductos, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 2.0;
        getContentPane().add(jPanelContenedor, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel JPanelFiltro;
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnEliminarProd;
    private javax.swing.JButton btnModificarProd;
    private javax.swing.JButton btnNuevoProducto;
    private javax.swing.JButton btnNuevoTipoProd;
    private javax.swing.JButton btnSalir;
    private javax.swing.JComboBox cbxTipoProducto;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanelContenedor;
    private javax.swing.JPanel jPanelProductos;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTable tblProductos;
    private javax.swing.JTextField txtNombreProd;
    // End of variables declaration//GEN-END:variables

    public JButton getBtnBuscar() {
        return btnBuscar;
    }

    public JComboBox getCbxTipoProducto() {
        return cbxTipoProducto;
    }

    public JTextField getTxtNombreProd() {
        return txtNombreProd;
    }

    public JTable getTblProductos() {
        return tblProductos;
    }

    public JButton getBtnEliminarProd() {
        return btnEliminarProd;
    }

    public JButton getBtnModificarProd() {
        return btnModificarProd;
    }

    public JButton getBtnNuevoProducto() {
        return btnNuevoProducto;
    }

    public JButton getBtnNuevoTipoProd() {
        return btnNuevoTipoProd;
    }

    public JButton getBtnSalir() {
        return btnSalir;
    }

}
